<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link rel="stylesheet" type="text/css" href="http://localhost/cms/Template/style/css/base.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/cms/Template/style/css/indexPage.css" />
</head>

<body>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div class="top w980 bc clearfix">
	<img src="http://localhost/cms/Template/style/images/index_02.jpg" class="fl" />
    <div class="fr topbox">
        <!-- 
        <a href="">
            <img src="http://localhost/cms/Template/style/images/index_05.jpg" />
            常见问题
        </a>
        <a href="">
            <img src="http://localhost/cms/Template/style/images/index_07.jpg" />
            人才招聘
        </a>
        <a href="">
            <img src="http://localhost/cms/Template/style/images/index_09.jpg" />
            下载专区
        </a>
         -->
    </div>
</div>
<div class="nav w">
	<ul class="w980 bc navlist">
    	<li <?php if(!Q('get.cid')){?>class="thisClass"<?php }?>>
            <a href="http://localhost/cms/index.html">网址首页</a>
        </li>
        <?php $cate = K('Category')->where('is_show=1 and is_nav=1')->limit()->order('csort DESC')->all(); ?>
<?php if(is_array($cate)):?><?php  foreach($cate as $field){ ?>
<?php 
$field['curl'] = get_cate_url($field['is_listhtml'],$field['htmldir'],$field['cid']);
$field['class'] = $field['cid'] == Q('get.cid') ? thisClass : '';
?>

            <li class="<?php echo $field['class'];?>">
                <a href="<?php echo $field['curl'];?>"><?php echo $field['cname'];?></a>
            </li>
        
<?php }?><?php endif;?>
    </ul>
</div>
<div class="bg w">
	<div class="w980 bc">
    	<img src="http://localhost/cms/Template/style/images/ad.png" class="bc" />
        <div class="clearfix">
            <div class="fl jieshao">
                <h1>联盟介绍</h1>
                <div class="con t2 p10 lh25">
                	名人婚纱摄影官网让美丽和幸福成为永恒。名人婚纱摄影官网是名人婚纱摄影的介绍网站，主要包含了图片展示和服务内容。，新人们的最幸福的时刻，让爱情得到纪念。每一个女人在拍婚纱照的时候都特别的美，因为这一刻最幸福。<br/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名人婚纱摄影官网让新娘成为最美丽的女人。名人婚纱摄影官网可以让你先接近婚纱摄影。它致力于新人的甜蜜婚影。人一生只穿一次。名人婚纱摄影官网送给新人最好的礼物。对于这一次，每一个女人都很重视。
                </div>
            </div>
            <img src="http://localhost/cms/Template/style/images/index_16.jpg" class="fr" />
        </div>
        <div class="anli mt15">
            <h1 class="clearfix">
            	<span class="fl">热门案例</span>
            	<a href="" class="fr"></a>
            </h1>
            <div class="clearfix imglist">
                <?php 
if(0){
		if(isset($_GET['cid'])){
			$cateInfo = K('Category')->where(array('cid'=>$_GET['cid']))->field('is_listhtml,htmldir')->find();
			if($cateInfo['is_listhtml']){
				//如果是静态则处理静态地址
				Page::$staticUrl = 'http://localhost/cms/Static/'.$cateInfo['htmldir'].'/index_{page}.html';
			}
	}
	
	$arcTotal = K('ArticleCateView')->where('is_recycle=0 and attr like "%热门%"')->count();
	$pageObj = new Page($arcTotal,10,0);
	//如果存在cid则处理静态地址
	$page = $pageObj->show();
	$arc = K('ArticleCateView')->where('is_recycle=0 and attr like "%热门%"')->limit(4)->all($pageObj->limit());
}else{
	$arc = K('ArticleCateView')->where('is_recycle=0 and attr like "%热门%"')->limit(4)->all();
}

?>
<?php if(is_array($arc)):?><?php  foreach($arc as $field){ ?>
<?php 
	$field['url'] = get_arc_url($field['is_archtml'],$field['htmldir'],$field['aid']);
	if(0) $field['title'] = mb_substr($field['title'], 0,0,'utf-8');
	$field['thumb'] = 'http://localhost/cms/' . $field['thumb'];
	$field['time'] = date('y-m-d',$field['sendtime']);
	$field['total'] = K('Comment')->get_total($field['aid']);
?>

            	<a href="<?php echo $field['url'];?>">
                	<img src="<?php echo $field['thumb'];?>" width="230" height="150" />
                    <?php echo $field['title'];?>
                </a>
                
<?php }?><?php endif;?>

            </div>
        </div>
        <div class="flink clearfix">
            <h1 class="clearfix">
                <span class="fl">友情链接</span>
            </h1>
            <?php $cate = K('Flink') -> limit() -> order('sort DESC') -> all(); ?>
<?php if(is_array($cate)):?><?php  foreach($cate as $field){ ?>
<?php
$field['img'] = 'http://localhost/cms' . $field['logo'];
?>
	
                <a href="<?php echo $field['url'];?>">
                    <p><img src="<?php echo $field['img'];?>" alt="" width="100" /></p>
                    <?php echo $field['fname'];?>
                </a>
            
<?php }?><?php endif;?>
        </div>
    </div>
</div>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div class="bottm w">
	<div class="w980 bc box pt10">
    	<p class="tc lh30">
        	<?php echo C("copy");?>
        </p>
    </div>
</div>
</body>
</html>














